package com.cskaoyan.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "file")
//prefix属性值 + 成员变量名(set方法) = 配置文件中的key
public class FileProperties {
    String location;
    Integer maxSize;
    String pngPath;
    String jpgPath;
    String username;
}
